package com.document.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.document.entity.po.UserEntity;
import com.document.entity.request.UserRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface UserMapper extends BaseMapper<UserEntity> {

    List<UserEntity> queryAll(@Param("user") UserRequest user, Page<UserEntity> page);

    List<UserEntity> getList(UserRequest request);

    Set<Integer> getUserPermission(@Param("id")Long id);
}
